import an7 from '@dfeidao/fd-an000007';
import an82 from '@dfeidao/fd-an000082';
import { IncomingHttpHeaders } from 'http';

interface Message {
	a: number;
	b: number;
	// cookie: {
	// 	uk: string;
	// 	[key: string]: string
	// };
	// urls: {
	// 	base: string;
	// 	origin: string;
	// 	url: string;
	// };
	// query: {};
	// params: {};
	// headers: {};
	// captcha: string;
}

export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders): Promise<an82> {
	an7('Service begin path:pg001\zj-002\s001,action_id:' + action_id);

	an7('Service end path:pg001\zj-002\s001,action_id:' + action_id);
	return {
		data: JSON.stringify(message.a + message.b)
	} as an82;
}
